Improve read examples.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 11 Apr 2006 17:27:58 +0000 (17:27 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 11 Apr 2006 17:27:58 +0000 (17:27 +0000)
gpsbabel/format_skeleton.c

index 64485cb19b11f29bf3a5216200c51d499a71223a..6d462c94bde60cadf252873c46405f71727bf00f 100644 (file)
@@ -74,6 +74,25 @@ format_skeleton_read(void)
 {
 //     your special code to extract waypoint, route and track
 //     information from file "fin"
+// For waypoints:
+//         while (have waypoints) {
+//                 waypoint = waypt_new()
+//                 populate waypoint
+//                 waypt_add(waypoint);
+//         }
+// 
+// For routes:
+// 
+//          route = route_head_alloc();
+//          populate struct route_hdr
+//         while (have more routepoints) {
+//                 waypoint = waypt_new()
+//                 populate waypoint
+//                 route_add_head(route, waypoint)
+//         }
+// 
+// Tracks are just like routes, except the word "track" replaces "routes".
+//
 }
 
 static void